package com.laiketui.plugin.common.interfaces;

import com.laiketui.plugin.common.domain.vo.DicVo;
import com.laiketui.core.exception.LaiKeAPIException;

import java.util.Map;

/**
 * 字典操作
 *
 * @author Trick
 * @date 2020/12/28 14:56
 */
public interface PublicDictionaryService {


    /**
     * 根据名称获取字典明细
     *
     * @param name -
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2020/12/28 15:00
     */
    Map<String, Object> getDictionaryByName(String name) throws LaiKeAPIException;

    public static void main(String[] args) {
        int num = 0;
        do {
            num++;
            System.out.println(num);
        } while (num < 1);
    }

    /**
     * 根据名称获取字典明细
     *
     * @param dicVo -
     * @return Map
     * @throws LaiKeAPIException-
     * @author Trick
     * @date 2021/9/17 16:27
     */
    Map<String, Object> getDictionaryByName(DicVo dicVo) throws LaiKeAPIException;

}
